Skip to content

RUBY-3773 Allow keyAltName in encrypted fields map#3056

Open
jamis wants to merge 5 commits into
mongodb:masterfrom
jamis:3773-keyAltName-in-encryptedFieldsMap
Open

RUBY-3773 Allow keyAltName in encrypted fields map#3056
jamis wants to merge 5 commits into
mongodb:masterfrom
jamis:3773-keyAltName-in-encryptedFieldsMap

Conversation

@jamis

@jamis jamis commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Adds support for specifying a keyAltName in the map for encrypted fields.

@jamis jamis requested a review from a team as a code owner June 9, 2026 20:20
@jamis jamis requested review from comandeo-mongo and Copilot June 9, 2026 20:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds unified spec test coverage and runner support needed to allow specifying keyAltName in an encryptedFieldsMap entry for Queryable Encryption (FLE2v2), gated on an appropriate libmongocrypt version.

Changes:

  • Added a new unified CSFLE/FLE2v2 spec test validating keyAltName behavior and expected key vault lookup.
  • Extended CRUD/unified requirement evaluation to support csfle: { minLibmongocryptVersion: ... }.
  • Bumped the libmongocrypt-helper gem constraint to align with the new minimum libmongocrypt requirement.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
spec/spec_tests/data/client_side_encryption/unified/fle2v2-InsertFind-keyAltName.yml New unified spec test for keyAltName in encryptedFieldsMap and expected key vault lookup/translation behavior.
spec/runners/crud/requirement.rb Adds handling for csfle.minLibmongocryptVersion in requirement satisfaction logic.
gemfiles/standard.rb Updates libmongocrypt-helper version constraint to ~> 1.18.0 under `FLE=helper

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread spec/runners/crud/requirement.rb
@jamis jamis marked this pull request as draft June 9, 2026 22:41
@jamis jamis marked this pull request as ready for review June 10, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants